<h2> Diário de Classe </h2>
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="table">
           <tr class="table_header">
            <td valign="middle" align="left">Aluno</td>
            <td valign="middle" align="left">Nota 1</td>
            <td valign="middle" align="left">Nota 2</td>
            <td valign="middle" align="left">Nota 3</td>
            <td valign="middle" align="left">Prova Final</td>
            <td valign="middle" align="left">Faltas</td>
        </tr>
        <?php
        foreach ($diarios as $diario) {
            echo '<tr class="row1">
            <td valign="middle" align="left"><a>';
            $nome = $Users->first(array("conditions" => array("id" => $diario["users_id"])));
            echo $nome["nome"].'</a></td>';
            echo '<td valign="middle" align="left"><a>';
            echo $diario["nota1"].'</a></td>';
            echo '<td valign="middle" align="left"><a>';
            echo $diario["nota2"].'</a></td>';
            echo '<td valign="middle" align="left"><a>';
            echo $diario["nota3"].'</a></td>';
            echo '<td valign="middle" align="left"><a>';
            echo $diario["nfinal"].'</a></td>';
            echo '<td valign="middle" align="left"><a>';
            echo $diario["faltas"].'</a></td>';            
        }
        echo '</tr></table>';
?>